package com.hmkj.core.mapper.system;

import com.hmkj.common.baseMapper.GenericMapper;
import com.hmkj.core.po.system.Bank;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 系统配置的银行列表相关Dao接口<br>
 *
 * @author donfy
 * @date 2017-08-15 08:55:41
 */
public interface BankMapper extends GenericMapper<Bank,Integer> {


    /**
     * 根据银行编码查询银行信息
     * @param bankCode 银行编码
     * @return
     */
    @Select("SELECT * FROM s_bank WHERE 1=1 and inside_code = #{bankCode} and del_flag = 1")
    Bank selectByCode(@Param(value = "bankCode") String bankCode);


    /**
     * 根据银行ids查询银行列表信息
     * @param
     * @return
     */
    @Select("SELECT * FROM s_bank WHERE 1=1 and id in (${ids}) and del_flag = 1")
    List<Bank> selectByIds(Map<String, Object> params);
}
